home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / eedsrc24.zip / EEP24SRC.ZIP / IGRAPH.H < prev    next >
C/C++ Source or Header  |  1990-09-05  |  2KB  |  47 lines

  1. /*****************************************************************************
  2. *   General routines to    handle the graphics.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                   Ver 0.2, Aug. 1990    *
  5. *                                         *
  6. * Support: Interface for the virtual raster device, ps.                 *
  7. *****************************************************************************/
  8.  
  9. #ifndef IGRAPH_H
  10. #define IGRAPH_H
  11.  
  12. #define IG_DEFAULT_ZOOM_FACTOR    2
  13.  
  14. typedef enum {
  15.     OUTPUT_EPSON,
  16.     OUTPUT_GIF,
  17.     OUTPUT_RAW,
  18. } OutputDriverType;
  19.  
  20. void IGInitGraph(void);
  21. void IGDumpScreen(OutputDriverType OutputKind, int DirectPrint,
  22.                         BooleanType DoubleDensity);
  23. void IGCloseGraph(void);
  24. int IGMapX(int x);
  25. int IGMapY(int y);
  26. void IGMoveTo(int x, int y);
  27. void IGLineTo(int x, int y);
  28. void IGLine(int x1, int y1, int x2, int y2);
  29. void IGPoly(int n, int *Points, int Fill);
  30. void IGBar(int x1, int y1, int x2, int y2);
  31. void IGCircle(int x, int y, int r);
  32. void IGArc(int x, int y, int StAngle, int EndAngle, int r);
  33. void IGTextFormat(TextOrientationType TextOrient, int Scale,
  34.           TextHorizJustifyType XCenter, TextVertJustifyType YCenter);
  35. void IGText(char *Text);
  36. void IGDrawNotBar(int x1, int y1, int x2, int y2, char *Str);
  37. void IGClearAllScreen(void);
  38.  
  39. /* These routines gets corrdinates in scren space. */
  40. void IGLineRelToNoMap(int x, int y);
  41. void IGMoveToNoMap(int x, int y);
  42. void IGLineNoMap(int x1, int y1, int x2, int y2);
  43. int IGTextWidthNoMap(char *s);
  44. int IGTextHeightNoMap(char *s);
  45.  
  46. #endif IGRAPH_H
  47.